<h3>Bonjour <?= $users->prenom ?></h3>

<hr>

<h5>Mes cours | <span><a class="button btn-dls tiny radius" href="<?= WEBROOT ?>cours/user_edit"> Ajouter un cour</a></span></h5>
<table class="large-12 medium-12 columns">
	<thead>
		<tr>
			<th>Titre</th>
			<th>Aperçu</th>
			<th>Catégorie</th>
			<th>Classe</th>
			<th></th>
		</tr>
	</thead>
	<tbody>
		<?php foreach ($cours as $c): ?>
		<tr>
			<div class="large-3 medium-3 columns"><td><?= $c->titre; ?></td></div>
			<td><?= substr($c->contenu, 0, 60); ?> ...</td>
			<td><?= $c->categorie; ?></td>
			<td><?= $c->classe; ?></td>
			<td style="text-align: right;">
				<a class=" button btn-dls tiny radius" href="<?= WEBROOT ?>cours/user_edit/<?= $c->id ?>">Modifier</a>
				<a class=" button btn-dls alert tiny radius" href="<?= WEBROOT ?>cours/user_delete/<?= $c->id ?>" onclick="return confirm('Supprimer ?');">Supprimer</a>
			</td>
		</tr>
		<?php endforeach; ?>
	</tbody>
</table>

<hr>
